#ifndef MUTUALEXCLUSIONTOKEN_H
#define MUTUALEXCLUSIONTOKEN_H

#include <QString>

class MutualExclusionToken {
public:
    MutualExclusionToken(QString ownerId = QString()) : ownerId(ownerId) {}

    const QString & getOwnerId() const { return ownerId; }
    bool isLocked() const { return !ownerId.isEmpty(); }
private:
    QString ownerId;
};

#endif // MUTUALEXCLUSIONTOKEN_H
